package cn.mw.cmdb.enums;

/**
 * @Author shenwenyi
 * @Date 2024/4/12 12:20
 * @PackageName:cn.mw.visualize.enums
 * @ClassName: QrCodeTypeEnum
 * @Description: TODD
 * @Version 1.0
 */
public enum QrCodeTypeEnum {
    INVENTORY("inventory","盘点");

    QrCodeTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private String code;

    private String desc;

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static QrCodeTypeEnum getDesc(String code) {
        for (QrCodeTypeEnum moduleEnum : values()) {
            if (code.equals(moduleEnum.getCode())) {
                return moduleEnum;
            }
        }
        return null;
    }
}
